@theme-color: #f85;
@active-color: #f85;
@roboto-font-path: '../fonts';
.roboto-font(@type) {
    @font-face {
        font-family: 'iconfont';
        src: url('@{roboto-font-path}/@{type}.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
}

.roboto-font('iconfont');
@font-face {
    font-family: 'BebasNeueRegular';
    src: url('../fonts/BebasNeue/regular/bebasneue-regular.eot');
    src: url('../fonts/BebasNeue/regular/bebasneue-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/BebasNeue/regular/bebasneue-regular.woff') format('woff'), url('../fonts/BebasNeue/regular/bebasneue-regular.ttf') format('truetype'), url('../fonts/BebasNeue/regular/bebasneue-regular.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    outline: none;
}

html,
body {
    height: 100%;
}

body {
    background-color: #f5f5f5;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    color: #2c3e50;
    font-size: 16px;
}

.hide {
    display: none;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
}

.clearfix:after {
    clear: both
}

.mt10 {
    margin-top: 10px;
}

.mb10 {
    margin-bottom: 10px;
}

.mt15 {
    margin-top: 15px;
}

.mb15 {
    margin-bottom: 15px;
}

.bg-white {
    background-color: white;
}

.bg-orange {
    background-color: orange;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.font-gray {
    color: gray !important;
}

.font-black {
    color: black !important;
}

.font-number {
    font-weight: normal;
    font-family: "BebasNeueRegular", "Bebas Neue";
    font-size: 16px;
}

.container {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
}

.van-icon {
    font-family: 'vant-icon', 'iconfont' !important;
}

.icon {
    display: block;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 85%;
    width: 1rem;
    height: 1rem;
    &-inline-block {
        display: inline-block;
    }
    &-exchange-success {
        background-image: url(../icons/exchange-success.png);
    }
    &-exchange-confirm {
        background-image: url(../icons/exchange-confirm.png);
    }
    &-vip {
        background-image: url(../icons/vip.png);
    }
}

img.face {
    height: 0.5rem;
    vertical-align: middle;
}

[class*=element-clickable]:active {
    background-color: @active-color;
}

.el-message-box {
    width: auto;
    &-icon {
        width: 70%;
        padding: 0.3rem;
        .icon {
            margin-bottom: 0.3rem;
        }
        .el-message-box__btns {
            padding-top: 0.3rem;
        }
    }
    &__header {
        display: none;
    }
}

.flexbox {
    -moz-box-align: center;
    -moz-box-pack: justify;
    align-items: center;
    align-content: space-around;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    flex-wrap: nowrap;
    &-item {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        text-align: center;
    }
}

.price-cny {
    color: @theme-color;
    font-weight: 500;
    display: inline-block;
}

.price-cny:before {
    content: '￥';
    font-size: 40%;
    font-weight: 500;
    text-indent: 0;
    font-family: Arial, "BebasNeueRegular", "Bebas Neue";
    vertical-align: top;
    float: left;
}

.goods-desc {
    font-size: 12px;
    color: #747474;
    line-height: 1.5;
    margin: 6px 0;
    span.quote {
        position: relative;
        padding: 0 2px 0 0;
        color: #f60;
        display: inline-block;
        &::before {
            content: "[";
            padding-right: 2px;
        }
        &::after {
            padding-left: 2px;
            content: "]";
        }
    }
}

.framerich {
    p {
        font-size: 12px;
        margin: 0;
    }
    img {
        width: 100%;
    }
}

.tips {
    background: #d8e8f8;
    color: #047bb3;
    font-size: 0.2rem;
    margin: 0;
    padding: 0.2rem 0.3rem;
    text-align: center;
    font-weight: normal;
}

.van-cell-address {
    /deep/ .van-cell {
        padding-right: 60px;
    }
    /deep/ .van-cell__label {
        color: #aaa;
        margin-top: 5px;
    }
    /deep/ .van-cell__left-icon {
        font-size: 13px;
        width: 13px;
        min-width: 13px;
        margin-right: 12px;
    }
}

.van-cell-text-list {
    /deep/ .van-cell {
        font-size: 12px;
        color: #999;
        padding: 6px 15px;
        &:not(:last-child)::after {
            display: none;
        }
    }
}

.van-card-goods-tidy {
    background: #fff;
    /deep/ .van-card {
        background: transparent;
        height: auto;
        padding: 15px;
        padding-left: 95px;
        &:not(:first-child) {
            margin-top: 0;
        }
        &:not(:last-child)::after {
            left: 0.4rem;
            right: 0;
            width: auto;
            -webkit-transform: scale(1, 0.5);
            transform: scale(1, 0.5);
            border-bottom-width: 0.02667rem;
        }
        &__thumb {
            top: auto;
            left: 30px;
            width: 50px;
            height: 50px;
        }
    }
}

.van-swipe /deep/ {
    &__indicator {
        width: 6px !important;
        /*no*/
        height: 6px !important;
        /*no*/
    }
}

.van-action-flex {
    -moz-box-align: center;
    -moz-box-pack: justify;
    align-items: center;
    align-content: space-around;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    flex-wrap: nowrap;
    height: 50px;
    &__item {
        padding: 0 10px;
        button {
            border-radius: 3px;
            height: 34px;
            line-height: 32px;
            font-size: 14px;
        }
        .van-button--default {
            color: #999;
            background-color: #f5f5f5;
        }
    }
    &__item:last-child {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        text-align: right;
    }
    &+.placeholder {
        height: 65px;
    }
}

.van-picker__toolbar /deep/ {
    font-size: 14px;
}

.abound-submit-bar {
    .van-button /deep/ {
        width: 100% !important;
    }
    .van-submit-bar__price {
        padding: 0;
    }
}

.contact-tools /deep/ {
    .van-contact-card__content {
        line-height: initial;
        padding: 0.3rem;
    }
    .van-contact-card--add .van-contact-card__icon {
        font-size: 0.6rem;
        width: 0.6rem;
        color: @theme-color;
    }
    .van-contact-card--edit .van-contact-card__icon {
        vertical-align: bottom;
        padding-bottom: 0.24rem;
    }
    .van-contact-card--edit .van-contact-card__icon:before {
        content: "\F030";
    }
    .van-contact-card__text {
        width: 85%;
        font-size: 0.34rem;
        div:last-child {
            padding-top: 0.2rem;
            font-size: 60%;
            line-height: 0.32rem;
        }
    }
    .van-address-list__group {
        padding-bottom: 0.9rem;
    }
    .van-address-list__add {
        width: 100%;
    }
}

.video-duration {
    color: #fff;
    font-size: 0.2rem;
    border-radius: 0.15rem;
    line-height: 0.36rem;
    padding-left: 0.4rem;
    padding-right: 0.15rem;
    background: rgba(0, 0, 0, .5) url(../icons/video-play.png) no-repeat 0.15rem center / auto 40%;
    display: inline-block;
}

.video-center-play {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3) url(../icons/video-play.png) no-repeat center center / 40%;
    text-align: center;
}

.video-center-play+.video-duration {
    background: rgba(0, 0, 0, .5);
    padding-left: 0.1rem;
}

.user-avatar {
    position: relative;
    margin-right: 0.2rem;
    width: 0.75rem;
    height: 0.75rem;
}

.user-avatar>img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-avatar>i.vip {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.24rem;
    height: 0.24rem;
    background: url(../icons/vip.png) no-repeat center center / cover;
    border: 1px solid #fff;
    border-radius: 50%;
}

.article-title {
    margin: 0;
    padding: 0.3rem;
    font-size: 0.5rem;
    font-weight: 500;
    color: #000;
}

.tsline-bloger .van-cell-text {
    font-weight: bold;
}

.tsline-bloger .subtitle {
    font-size: 0.2rem;
    color: #aaa;
    overflow: hidden;
    width: 100%;
    height: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tsline-bloger .subtitle span {
    width: auto;
    font-weight: 300;
}

.rtf-html {
    padding: 0 0.3rem;
    color: #333;
    font-weight: 300;
    font-size: 0.32rem;
    line-height: 0.5rem;
    background: #fff;
    padding-bottom: 0.5rem;
}

.rtf-html img {
    max-width: 100%;
}

.rtf-html p {
    margin: 0.3rem 0;
}

.article-actions {
    padding: 0.3rem;
}

.article-actions button {
    border-radius: 0.5rem;
    width: 2rem;
}

.tag-end {
    width: 50%;
    margin: 0.5rem auto;
    height: 1px;
    background: #ccc;
}

.btn-no-border {
    border-color: transparent;
}

.coupon {
    background: #FF6666;
    padding: 8px;
    font-size: 75%;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.coupon:before,
.coupon:after {
    content: ' ';
    width: 0;
    height: 96%;
    position: absolute;
    top: 4%;
    border-style: dotted;
    border-color: white;
    border-width: 0;
}

.coupon:before {
    border-right-width: 4px;
    left: -2px;
}

.coupon:after {
    border-left-width: 4px;
    right: -2px;
}

.coupon.coupon-large:before {
    border-right-width: 0.28rem;
    left: -0.14rem;
}

.coupon.coupon-large:after {
    border-left-width: 0.28rem;
    right: -0.14rem;
}

.van-sku-container {
    border-radius: 5px;
}

.van-sku-header {
    &__img-wrap {
        padding: 4px;
        border-radius: 5px !important;
        background: #fff;
        img {
            position: initial !important;
            width: 100%;
            height: 100%;
            ;
            border-radius: 5px;
        }
    }
}

.van-sku__goods-price {
    color: #f56660;
}

.van-sku__price-symbol {
    font-size: 40%;
    vertical-align: top !important;
}

.van-sku__close-icon {
    font-size: inherit !important;
}

/**
 * .media-object
 */

.media-object {
    display: block;
    img {
        width: 100%;
        outline-width: 0px;
        vertical-align: top;
    }
    &-intros {
        padding: 12px;
        background: #fff;
        .goods-name,
        .goods-slogan,
        .price {
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .goods-name {
            font-size: 14px;
            font-weight: 500;
            color: #343434;
        }
        .goods-slogan {
            padding: 5px 0;
            font-size: 10px;
            font-weight: 300;
            color: #b0b0b0;
        }
    }
    &-intros.horizontal {
        position: relative;
        padding-right: 20%;
        .price {
            position: absolute;
            right: 12px;
            top: 12px;
        }
    }
}

/**
 * .socrates
 */

.socrates {
    margin: 10px -1px;
    background: #fff;
    div {
        padding: 1px;
        float: left;
        width: 50%;
        >img {
            width: 100%;
            outline-width: 0px;
            vertical-align: top;
        }
    }
}

/**
 * .arrow
 */

.arrow {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    &-top:before,
    &-top:after {
        position: absolute;
        width: 0;
        height: 0;
        display: block;
        content: '';
        left: 0;
        top: 0;
        z-index: 5;
        border: 5px solid transparent;
        border-bottom-color: white;
        overflow: hidden;
    }
    &-top:before {
        border-bottom-color: #e5e5e5;
    }
    &-top:after {
        top: 1px;
    }
}

/**
 * .boothstand
 */

.boothstand {
    width: 100%;
    dl {
        background: #fff;
        .cate-title {
            font-family: "宋体";
            font-size: 16px;
            margin: 0;
            padding: 10px 12px;
            background: #fff;
        }
    }
    .ualf {
        margin: -1px;
        background: #fff;
        a.media-object {
            float: left;
            padding: 1px;
            width: 50%;
        }
    }
    .larf {
        margin: 0;
        a.media-object {
            -moz-box-align: center;
            -moz-box-pack: justify;
            align-items: center;
            align-content: space-around;
            box-sizing: border-box;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            justify-content: center;
            overflow: hidden;
            width: 100%;
            flex-wrap: nowrap;
            >* {
                -webkit-box-flex: 1;
                -webkit-flex: 1;
                flex: 1;
                width: 50%;
            }
            &:nth-child(odd)>img {
                order: 1;
            }
        }
    }
}

/**
 * .paymode
 */

.paymode {
    .van-icon {
        font-size: 20px;
        &-wechat {
            color: #62B900;
        }
        &-alipay {
            color: #108EE9;
        }
    }
    .van-cell__title {
        flex: 4;
        -webkit-box-flex: 4;
        -ms-flex: 4;
        >* {
            display: inline-block;
        }
        .van-cell__label {
            font-size: 60%;
            padding-left: 5px;
            color: #ccc;
        }
    }
}

/**
 * .user-cell
 */

.user-cell {
    /deep/ .van-cell {
        background: #3a95fe;
        padding: 15px;
        color: #fff;
        &__title {
            flex: 1 1 auto;
            -ms-flex: 1 1 auto;
            -webkit-box-flex: 1 1 auto;
        }
        &-text {
            font-size: 16px;
            font-weight: 500;
        }
        &-desc {
            font-size: 10px;
            color: rgba(255, 255, 255, .6);
        }
        .van-icon {
            color: rgba(255, 255, 255, .6);
        }
        &__right-icon {
            color: #fff;
        }
    }
    &-avatar {
        display: inline-block;
        position: relative;
        vertical-align: middle;
        height: 60px;
        width: 60px;
        margin-right: 10px;
        border: 1px solid #0060cd;
        background: #fff;
        padding: 3px;
        border-radius: 50%;
        overflow: hidden;
        >img {
            width: 100%;
            height: auto;
            border-radius: 50%;
        }
        >span {
            position: absolute;
            display: inline-block;
            right: 0;
            bottom: 5px;
            width: 100%;
            height: 12px;
            background-color: #ff6600;
            color: #fff;
            line-height: 12px;
            font-size: 10px;
            text-align: center;
        }
    }
}